Skip to content

ci: pin @antora/pdf-extension to 1.0.0-beta.20 (fix build FATAL)#274

Closed
hs-liuxh wants to merge 1 commit into
IvorySQL:masterfrom
hs-liuxh:fix/pin-pdf-extension-master
Closed

ci: pin @antora/pdf-extension to 1.0.0-beta.20 (fix build FATAL)#274
hs-liuxh wants to merge 1 commit into
IvorySQL:masterfrom
hs-liuxh:fix/pin-pdf-extension-master

Conversation

@hs-liuxh

Copy link
Copy Markdown
Contributor

Problem

PR #271 and other doc builds fail with:

FATAL (antora): contentCatalog.createFile is not a function

Root cause

The CI installs Antora pinned (antora@3.1.7) but @antora/pdf-extension unpinned. On 2026-06-29, @antora/pdf-extension@1.0.0-rc.1 was published, which bundles @antora/assembler@1.0.0-rc.1. That assembler calls contentCatalog.createFile() — a method that does not exist in @antora/content-classifier@3.1.10 (the ContentCatalog used by antora@3.1.7). The previous version 1.0.0-beta.20 did not use it, so builds passed until the new release.

Fix

Pin @antora/pdf-extension to the last-known-good 1.0.0-beta.20 in both workflow install steps (pr-preview.yml, merge-build-push.yml), restoring the working toolchain alongside antora@3.1.7.

Note: pr-preview.yml runs via pull_request_target, so this fix only takes effect for new PR previews once merged into the base branch.

🤖 Generated with Claude Code

@antora/pdf-extension@1.0.0-rc.1 (published 2026-06-29) bundles
@antora/assembler@1.0.0-rc.1, which calls contentCatalog.createFile() — a
method absent from @antora/content-classifier@3.1.10 used by the pinned
antora@3.1.7. The unpinned install began resolving to rc.1, causing
'FATAL (antora): contentCatalog.createFile is not a function'.

Pin to the last-known-good 1.0.0-beta.20 to restore the working toolchain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hs-liuxh hs-liuxh closed this Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant